package com.emergency.db.domain.staff;

import com.emergency.base.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.*;

//员工信息总表
@Entity
@Table(name = "bas_staff")
public class Staff extends BaseEntity {

    private String name;//员工姓名

    private String task;//主要任务

    private String grade; //级别 枚举

    private String army;//所属分队,枚举;0.突击抢险1队；1.应急监测与辐射防护；2.去污洗消

    private String sGroup;// 分队名下小组 枚举

    private String team;// 分组名下小分队,枚举

    private String teamSet;//小分队名下集合,枚举

    private String work;//员工工作状态，枚举；0.待命；1.出勤；2休假


    //临时属性：员工细节
    @Transient
    private StaffDetail staffDetail;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTask() {
        return task;
    }

    public void setTask(String task) {
        this.task = task;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getArmy() {
        return army;
    }

    public void setArmy(String army) {
        this.army = army;
    }

    public String getsGroup() {
        return sGroup;
    }

    public void setsGroup(String sGroup) {
        this.sGroup = sGroup;
    }

    public String getTeam() {
        return team;
    }

    public void setTeam(String team) {
        this.team = team;
    }

    public String getTeamSet() {
        return teamSet;
    }

    public void setTeamSet(String teamSet) {
        this.teamSet = teamSet;
    }

    public String getWork() {
        return work;
    }

    public void setWork(String work) {
        this.work = work;
    }

    public StaffDetail getStaffDetail() {
        return staffDetail;
    }

    public void setStaffDetail(StaffDetail staffDetail) {
        this.staffDetail = staffDetail;
    }
}
